import { sendRequest } from '@/http';

/* 查询长者用药计划 */
export const queryElderMedSchedule = (params: any) =>
  sendRequest({
    url: '/admin/elder/queryElderMedSchedule',
    method: 'get',
    params,
  });

/* 查询长者用药计划详情 */
export const queryElderMedScheduleDetail = (
  elderId: string,
  scheduleId: string
) =>
  sendRequest({
    url: '/admin/elder/queryElderMedScheduleDetail',
    method: 'get',
    params: { elderId, scheduleId },
  });

/* 查询长者用药计划详情 */
export const queryElderMedScheduleLog = (scheduleId: string) =>
  sendRequest({
    url: '/admin/elder/queryElderMedScheduleLog',
    method: 'get',
    params: { scheduleId },
  });
